package com.gis.service;

import java.util.HashMap;
import java.util.Map;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gis.entity.User;

public interface UserService extends IService<User> {

    HashMap<String, Object> login(String username, String password);
    HashMap<String, Object> register(String username, String password);
    HashMap<String, Object> updatePassword(String username, String newPassword);
    HashMap<String, Object> deleteUser(String username);
    HashMap<String, Object> updateUsertype(String username, String newUsertype);
    HashMap<String, Object> addUser(String username, String password, String userType);

    /**
     * 根据用户名获取用户信息
     */
    User getUserByUsername(String username);
}
